package com.sijibao.gather.event.serialization;

import com.sijibao.gather.event.WechatSessionCreateEvent;

public class WechatSessionCreateEventSerializer extends CommonSerializer
		implements Serializer<WechatSessionCreateEvent>
{

	/**
	 * 序列化顺序 用户编码<br>
	 * 时间<br>
	 * 定位经度<br>
	 * 定位纬度<br>
	 */
	@Override
	public String serialize(WechatSessionCreateEvent event)
	{
		StringBuilder sb = new StringBuilder();
		sb.append(stringSerialize(event.getUserCode()));
		sb.append(SEPARATOR);
		sb.append(timestampMsSerialize(event.getCreateTime()));
		sb.append(SEPARATOR);
		sb.append(doubleSerialize(event.getLongitude()));
		sb.append(SEPARATOR);
		sb.append(doubleSerialize(event.getLatitude()));

		return sb.toString();
	}

}
